package com.mao.spider;

import com.mao.dao.LinuxDao;
import com.mao.utils.JsonUtils;
import com.mao.utils.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;

/**
 * @Description:
 * @Param:
 * @Thought:
 * @Author: Wenjie Mao
 * @create： 2022-12-06 20:33
 */
public class writeJsonToMysql {

    public static void main(String[] args) {
        SqlSession sqlSession = MyBatisUtils.getSqlSession();
        LinuxDao linuxDao = sqlSession.getMapper(LinuxDao.class);

        JsonUtils.jsonToMysql(linuxDao,"d://user.json");


    }

}
